Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Esp8266 PHY settings runtime modification #2830

Merged
merged 10 commits into from
Jun 24, 2024

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Jun 23, 2024

The initial PHY data is used initialize an ESP8266 chip and controls its behaviour.
This is stored in the phy_init partition and is loaded at startup.

Sometimes you may want to change that data for a certain ROM on the device without changing it for all ROMs on the device.

To do this, build with ENABLE_CUSTOM_PHY=1 and add code to your application:

#include <esp_phy.h>

void customPhyInit(PhyInitData data)
{
   // Use methods of `data` to modify as required
 data.set_vdd33_const(0xff);
}

This PR supersedes #1491 and provides a more C++ mechanism for adjusting the configuration at runtime.

@mikee47 mikee47 force-pushed the feature/custom-phy branch from 692b242 to 754158b Compare June 23, 2024 14:20
@slaff slaff added this to the 5.2.0 milestone Jun 24, 2024
@slaff slaff merged commit cb8adf4 into SmingHub:develop Jun 24, 2024
40 checks passed
@mikee47 mikee47 deleted the feature/custom-phy branch June 24, 2024 11:14
@slaff slaff mentioned this pull request Jul 4, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants